import Vue from 'vue'
import VueRouter from 'vue-router'

/**
 * top menu 路由
 */
import Main from '../components/main.vue'
import Accredit from '../components/accredit.vue'
import System from '../components/system.vue'
import Resources from '../components/resources.vue'
import Login from '../components/login/login.vue'

import err404 from '../components/error/404.vue'
import err402 from '../components/error/402.vue'
import err401 from '../components/error/401.vue'
/**
 * left menu 路由 数据
 */
const realTimeData = resolve => require(['../components/main/realTime/realTimeData/realTimeData.vue'], resolve);

const gameSituation = resolve => require(['../components/main/realTime/gameSituation/gameSituation.vue'], resolve);
const countryRealTime = resolve => require(['../components/main/realTime/countryRealTime/countryRealTime.vue'], resolve);
const realTimeChannel = resolve => require(['../components/main/realTime/realTimeChannel/realTimeChannel.vue'], resolve);
const realTimeService = resolve => require(['../components/main/realTime/realTimeService/realTimeService.vue'], resolve);
const cpsDisplay = resolve => require(['../components/main/realTime/cpsDisplay/cpsDisplay.vue'], resolve);
const gameIntoConversion = resolve => require(['../components/main/realTime/gameIntoConversion/gameIntoConversion.vue'], resolve);
const auanyDisplay = resolve => require(['../components/main/realTime/auanyDisplay/auanyDisplay.vue'], resolve);
/**
 * left menu   accountQuery 路由   流水
 */
const accountInformation = resolve => require(['../components/main/accountQuery/accountInformation/accountInformation.vue'], resolve);
const consumeRanking = resolve => require(['../components/main/accountQuery/consumeRanking/consumeRanking.vue'], resolve);
const copyStatistics = resolve => require(['../components/main/accountQuery/copyStatistics/copyStatistics.vue'], resolve);
const deadFlow = resolve => require(['../components/main/accountQuery/deadFlow/deadFlow.vue'], resolve);
const emailQuery = resolve => require(['../components/main/accountQuery/emailQuery/emailQuery.vue'], resolve);
const fightingFlow = resolve => require(['../components/main/accountQuery/fightingFlow/fightingFlow.vue'], resolve);
const fightingRanking = resolve => require(['../components/main/accountQuery/fightingRanking/fightingRanking.vue'], resolve);
const quotaUpdate = resolve => require(['../components/main/accountQuery/quotaUpdate/quotaUpdate.vue'], resolve);
const realTimeAccountLog = resolve => require(['../components/main/accountQuery/realTimeAccountLog/realTimeAccountLog.vue'], resolve);
const realTimeAuanyCreateOrder = resolve => require(['../components/main/accountQuery/realTimeAuanyCreateOrder/realTimeAuanyCreateOrder.vue'], resolve);
const realTimeAuanyPayOrder = resolve => require(['../components/main/accountQuery/realTimeAuanyPayOrder/realTimeAuanyPayOrder.vue'], resolve);
const realTimeAuanyTransferOrder = resolve => require(['../components/main/accountQuery/realTimeAuanyTransferOrder/realTimeAuanyTransferOrder.vue'], resolve);
const realTimeAuctionHouse = resolve => require(['../components/main/accountQuery/realTimeAuctionHouse/realTimeAuctionHouse.vue'], resolve);
const realTimeCurrency = resolve => require(['../components/main/accountQuery/realTimeCurrency/realTimeCurrency.vue'], resolve);
const realTimeEquipmentConsume = resolve => require(['../components/main/accountQuery/realTimeEquipmentConsume/realTimeEquipmentConsume.vue'], resolve);
const realTimeGoods = resolve => require(['../components/main/accountQuery/realTimeGoods/realTimeGoods.vue'], resolve);
const realTimeNewCreate = resolve => require(['../components/main/accountQuery/realTimeNewCreate/realTimeNewCreate.vue'], resolve);
const realTimeNewLogin = resolve => require(['../components/main/accountQuery/realTimeNewLogin/realTimeNewLogin.vue'], resolve);
const realTimePetRelease = resolve => require(['../components/main/accountQuery/realTimePetRelease/realTimePetRelease.vue'], resolve);
const realTimePrestige = resolve => require(['../components/main/accountQuery/realTimePrestige/realTimePrestige.vue'], resolve);
const realTimeRecharge = resolve => require(['../components/main/accountQuery/realTimeRecharge/realTimeRecharge.vue'], resolve);
const realTimeRoleCreation = resolve => require(['../components/main/accountQuery/realTimeRoleCreation/realTimeRoleCreation.vue'], resolve);
const realTimeStrengthen = resolve => require(['../components/main/accountQuery/realTimeStrengthen/realTimeStrengthen.vue'], resolve);
const realTimeTaskStatistics = resolve => require(['../components/main/accountQuery/realTimeTaskStatistics/realTimeTaskStatistics.vue'], resolve);
const realTimeTransfer = resolve => require(['../components/main/accountQuery/realTimeTransfer/realTimeTransfer.vue'], resolve);
const rechargeRanking = resolve => require(['../components/main/accountQuery/rechargeRanking/rechargeRanking.vue'], resolve);
const roleLog = resolve => require(['../components/main/accountQuery/roleLog/roleLog.vue'], resolve);
const roleRename = resolve => require(['../components/main/accountQuery/roleRename/roleRename.vue'], resolve);
const forceChanges = resolve => require(['../components/main/accountQuery/forceChanges/forceChanges.vue'], resolve);
const roleUpgrade = resolve => require(['../components/main/accountQuery/roleUpgrade/roleUpgrade.vue'], resolve);
const sociatyRename = resolve => require(['../components/main/accountQuery/sociatyRename/sociatyRename.vue'], resolve);
const addcashAction = resolve => require(['../components/main/accountQuery/addcashAction/addcashAction.vue'], resolve);
const sailorFlow = resolve => require(['../components/main/accountQuery/sailorFlow/sailorFlow.vue'], resolve);
const shipDevNewAction = resolve => require(['../components/main/accountQuery/shipDevNewAction/shipDevNewAction.vue'], resolve);
const shipFightStatisticFlow = resolve => require(['../components/main/accountQuery/shipFightStatisticFlow/shipFightStatisticFlow.vue'], resolve);
const vipexpget = resolve => require(['../components/main/accountQuery/vipexpget/vipexpget.vue'], resolve);
const jobRaceGender = resolve => require(['../components/main/accountQuery/jobRaceGender/jobRaceGender.vue'], resolve);
const teacherPupil = resolve => require(['../components/main/accountQuery/teacherPupil/teacherPupil.vue'], resolve);
const predestinedLove = resolve => require(['../components/main/accountQuery/predestinedLove/predestinedLove.vue'], resolve);
const marriage = resolve => require(['../components/main/accountQuery/marriage/marriage.vue'], resolve);
const fightValueChangeFlow = resolve => require(['../components/main/accountQuery/fightValueChangeFlow/fightValueChangeFlow.vue'], resolve);
const bespokeWeddingFlow = resolve => require(['../components/main/accountQuery/bespokeWeddingFlow/bespokeWeddingFlow.vue'], resolve);
const treasureBoxFlow = resolve => require(['../components/main/accountQuery/treasureBoxFlow/treasureBoxFlow.vue'], resolve);


const prestigeFlow = resolve => require(['../components/main/accountQuery/prestigeFlow/prestigeFlow.vue'], resolve);

const alarmResults = resolve => require(['../components/main/resource/alarmResults/alarmResults.vue'], resolve);
/**
 * left menu 路由 运营报表
 */
const profile = resolve => require(['../components/main/operatingReport/profile/profile.vue'], resolve);
const platformChannel = resolve => require(['../components/main/operatingReport/platformChannel/platformChannel.vue'], resolve);
const districtService = resolve => require(['../components/main/operatingReport/districtService/districtService.vue'], resolve);
const CPS = resolve => require(['../components/main/operatingReport/CPS/CPS.vue'], resolve);
const countryReport = resolve => require(['../components/main/operatingReport/countryReport/countryReport.vue'], resolve);
const accumulatedChannels = resolve => require(['../components/main/operatingReport/accumulatedChannels/accumulatedChannels.vue'], resolve);
/**
 * left menu 路由 玩家分析
 */
const playactive = resolve => require(['../components/main/playerAnalysis/playactive/playactive.vue'], resolve);
const playkeep = resolve => require(['../components/main/playerAnalysis/playkeep/playkeep.vue'], resolve);
const playProfession = resolve => require(['../components/main/playerAnalysis/playProfession/playProfession.vue'], resolve);
const playleave = resolve => require(['../components/main/playerAnalysis/playleave/playleave.vue'], resolve);
const playlogin = resolve => require(['../components/main/playerAnalysis/playlogin/playlogin.vue'], resolve);
const playonline = resolve => require(['../components/main/playerAnalysis/playonline/playonline.vue'], resolve);
const playGradesLeave = resolve => require(['../components/main/playerAnalysis/playGradesLeave/playGradesLeave.vue'], resolve);
const playplats = resolve => require(['../components/main/playerAnalysis/playplats/playplats.vue'], resolve);
const playBackflow = resolve => require(["../components/main/playerAnalysis/playBackflow/playBackflow.vue"], resolve);
const newPlayer = resolve => require(["../components/main/playerAnalysis/newPlayer/newPlayer.vue"], resolve);
/**
 * left menu 路由 付费分析
 */
const payIncome = resolve => require(['../components/main/paymentAnalysis/payIncome/payIncome.vue'], resolve);
const newPlayerValue = resolve => require(['../components/main/paymentAnalysis/newPlayerValue/newPlayerValue.vue'], resolve);
const payHabit = resolve => require(['../components/main/paymentAnalysis/payHabit/payHabit.vue'], resolve);
/*财务工具*/
const reconciliationBusiness = resolve => require(['../components/main/financialTools/reconciliationBusiness/reconciliationBusiness.vue'], resolve);
const reconciliationBusinessChannel = resolve => require(['../components/main/financialTools/reconciliationBusinessChannel/reconciliationBusinessChannel.vue'], resolve);
/**
 * left menu 路由 游戏内分析
 */
const activityAnalysis = resolve => require(['../components/main/gameInnerAnalysis/activityAnalysis/activityAnalysis.vue'], resolve);
const copyAnalysis = resolve => require(['../components/main/gameInnerAnalysis/copyAnalysis/copyAnalysis.vue'], resolve);
const countryAnalysis = resolve => require(['../components/main/gameInnerAnalysis/countryAnalysis/countryAnalysis.vue'], resolve);
const economicsAnalysis = resolve => require(['../components/main/gameInnerAnalysis/economicsAnalysis/economicsAnalysis.vue'], resolve);
const occupationAnalysis = resolve => require(['../components/main/gameInnerAnalysis/occupationAnalysis/occupationAnalysis.vue'], resolve);
const playerGardeAnalysis = resolve => require(['../components/main/gameInnerAnalysis/playerGardeAnalysis/playerGardeAnalysis.vue'], resolve);
const roleGardeAnalysis = resolve => require(['../components/main/gameInnerAnalysis/roleGardeAnalysis/roleGardeAnalysis.vue'], resolve);
const shopAnalysis = resolve => require(['../components/main/gameInnerAnalysis/shopAnalysis/shopAnalysis.vue'], resolve);
const taskAnalysis = resolve => require(['../components/main/gameInnerAnalysis/taskAnalysis/taskAnalysis.vue'], resolve);
/**
 * left menu 路由 市场数据分析
 */
const realTimeAdSlotData = resolve => require(['../components/main/marketDataAnalysis/realTimeAdSlotData/realTimeAdSlotData.vue'], resolve);
const realTimeChannelData = resolve => require(['../components/main/marketDataAnalysis/realTimeChannelData/realTimeChannelData.vue'], resolve);
const AdSchedulingOverview = resolve => require(['../components/main/marketDataAnalysis/AdSchedulingOverview/AdSchedulingOverview.vue'], resolve);
const vipCount = resolve => require(['../components/main/marketDataAnalysis/vipCount/vipCount.vue'], resolve);
const rankCount = resolve => require(['../components/main/marketDataAnalysis/rankCount/rankCount.vue'], resolve);
const UrlStatistics = resolve => require(['../components/main/marketDataAnalysis/UrlStatistics/UrlStatistics.vue'], resolve);
const channelStatistics = resolve => require(['../components/main/marketDataAnalysis/channelStatistics/channelStatistics.vue'], resolve);
const AdDayData = resolve => require(['../components/main/marketDataAnalysis/AdDayData/AdDayData.vue'], resolve);
const AdWarnData = resolve => require(['../components/main/marketDataAnalysis/AdWarnData/AdWarnData.vue'], resolve);
const pointsWallCount = resolve => require(['../components/main/marketDataAnalysis/pointsWallCount/pointsWallCount.vue'], resolve);
const dayDataRetaPaid = resolve => require(['../components/main/marketDataAnalysis/dayDataRetaPaid/dayDataRetaPaid.vue'], resolve);
const advDayAllDataMarket = resolve => require(['../components/main/marketDataAnalysis/advDayAllDataMarket/advDayAllDataMarket.vue'], resolve);
/**
 * left menu 路由 客户端分析
 */
const activateCon = resolve => require(['../components/main/clientAnalysis/activateCon/activateCon.vue'], resolve);
const channelCon = resolve => require(['../components/main/clientAnalysis/channelCon/channelCon.vue'], resolve);
const modelCon = resolve => require(['../components/main/clientAnalysis/modelCon/modelCon.vue'], resolve);
/**
 * left menu 路由 授权
 */
const moudle = resolve => require(['../components/accredit/moudle/moudle.vue'], resolve);
const project = resolve => require(['../components/accredit/project/project.vue'], resolve);
const users = resolve => require(['../components/accredit/users/users.vue'], resolve);
const port = resolve => require(['../components/accredit/port/port.vue'], resolve);
const role = resolve => require(['../components/accredit/role/role.vue'], resolve);
const backgroundLog = resolve => require(['../components/accredit/backgroundLog/backgroundLog.vue'], resolve);
const defeatLog = resolve => require(['../components/accredit/defeatLog/defeatLog.vue'], resolve);
const successLog = resolve => require(['../components/accredit/successLog/successLog.vue'], resolve);

/**
 * left menu 路由 系统配置
 */
const systemConfig = resolve => require(['../components/system/systemConfig/systemConfig.vue'], resolve);
const adSystemConfig = resolve => require(['../components/system/adSystemConfig/adSystemConfig.vue'], resolve);
const adCostConfig = resolve => require(['../components/system/adCostConfig/adCostConfig.vue'], resolve);
const platConfig = resolve => require(['../components/system/platConfig/platConfig.vue'], resolve);
const chinalConfig = resolve => require(['../components/system/chinalConfig/chinalConfig.vue'], resolve);
const serversConfig = resolve => require(['../components/system/serversConfig/serversConfig.vue'], resolve);
const gameParamsType = resolve => require(['../components/system/gameParamsType/gameParamsType.vue'], resolve);
const gameParamsConfig = resolve => require(['../components/system/gameParamsConfig/gameParamsConfig.vue'], resolve);

// /**
//  * left menu 路由 告警管理
//  */
const alarmUser = resolve => require(['../components/resources/alarmUser/alarmUser.vue'], resolve);
const alarmGroup = resolve => require(['../components/resources/alarmGroup/alarmGroup.vue'], resolve);
const userGroup = resolve => require(['../components/resources/userGroup/userGroup.vue'], resolve);
const alarmConfiguration = resolve => require(['../components/resources/alarmConfiguration/alarmConfiguration.vue'], resolve);
const dailyReport = resolve => require(['../components/resources/dailyReport/dailyReport.vue'], resolve);
const vipCombatGradeFactor = resolve => require(['../components/resources/vipCombatGradeFactor/vipCombatGradeFactor.vue'], resolve);


Vue.use(VueRouter)

const routes = [
    { path: '/login', component: Login },
    {
        path: '/main',
        component: Main,
        children: [
            { path: '/main/realTime/realTimeData', component: realTimeData },
            { path: '/main/realTime/countryRealTime', component: countryRealTime },
            { path: '/main/realTime/realTimeChannel', component: realTimeChannel },
            { path: '/main/realTime/realTimeService', component: realTimeService },
            { path: '/main/realTime/cpsDisplay', component: cpsDisplay },
            { path: '/main/realTime/gameIntoConversion', component: gameIntoConversion },
            { path: '/main/realTime/auanyDisplay', component: auanyDisplay },
            { path: '/main/realTime/gameSituation', component: gameSituation },
            { path: '/main/accountQuery/accountInformation', component: accountInformation },
            { path: '/main/accountQuery/consumeRanking', component: consumeRanking },
            { path: '/main/accountQuery/copyStatistics', component: copyStatistics },
            { path: '/main/accountQuery/deadFlow', component: deadFlow },
            { path: '/main/accountQuery/emailQuery', component: emailQuery },
            { path: '/main/accountQuery/fightingFlow', component: fightingFlow },
            { path: '/main/accountQuery/fightingRanking', component: fightingRanking },
            { path: '/main/accountQuery/quotaUpdate', component: quotaUpdate },
            { path: '/main/accountQuery/realTimeAccountLog', component: realTimeAccountLog },
            { path: '/main/accountQuery/realTimeAuanyCreateOrder', component: realTimeAuanyCreateOrder },
            { path: '/main/accountQuery/realTimeAuanyPayOrder', component: realTimeAuanyPayOrder },
            { path: '/main/accountQuery/forceChanges', component: forceChanges },
            { path: '/main/accountQuery/realTimeAuanyTransferOrder', component: realTimeAuanyTransferOrder },
            { path: '/main/accountQuery/realTimeAuctionHouse', component: realTimeAuctionHouse },
            { path: '/main/accountQuery/realTimeCurrency', component: realTimeCurrency },
            { path: '/main/accountQuery/realTimeEquipmentConsume', component: realTimeEquipmentConsume },
            { path: '/main/accountQuery/realTimeGoods', component: realTimeGoods },
            { path: '/main/accountQuery/realTimeNewCreate', component: realTimeNewCreate },
            { path: '/main/accountQuery/realTimeNewLogin', component: realTimeNewLogin },
            { path: '/main/accountQuery/realTimePetRelease', component: realTimePetRelease },
            { path: '/main/accountQuery/realTimePrestige', component: realTimePrestige },
            { path: '/main/accountQuery/realTimeRecharge', component: realTimeRecharge },
            { path: '/main/accountQuery/realTimeRoleCreation', component: realTimeRoleCreation },
            { path: '/main/accountQuery/realTimeStrengthen', component: realTimeStrengthen },
            { path: '/main/accountQuery/realTimeTaskStatistics', component: realTimeTaskStatistics },
            { path: '/main/accountQuery/realTimeTransfer', component: realTimeTransfer },
            { path: '/main/accountQuery/rechargeRanking', component: rechargeRanking },
            { path: '/main/accountQuery/roleLog', component: roleLog },
            { path: '/main/accountQuery/roleRename', component: roleRename },
            { path: '/main/accountQuery/roleUpgrade', component: roleUpgrade },
            { path: '/main/accountQuery/fightValueChangeFlow', component: fightValueChangeFlow },
            { path: '/main/accountQuery/sociatyRename', component: sociatyRename },
            { path: '/main/accountQuery/addcashAction', component: addcashAction },
            { path: '/main/accountQuery/sailorFlow', component: sailorFlow },
            { path: '/main/accountQuery/shipDevNewAction', component: shipDevNewAction },
            { path: '/main/accountQuery/shipFightStatisticFlow', component: shipFightStatisticFlow },
            { path: '/main/accountQuery/bespokeWeddingFlow', component: bespokeWeddingFlow },
            { path: '/main/accountQuery/vipexpget', component: vipexpget },
            { path: '/main/accountQuery/prestigeFlow', component: prestigeFlow },
            { path: '/main/accountQuery/jobRaceGender', component: jobRaceGender },
            { path: '/main/accountQuery/teacherPupil', component: teacherPupil },
            { path: '/main/accountQuery/predestinedLove', component: predestinedLove },
            { path: '/main/accountQuery/marriage', component: marriage },
            { path: '/main/accountQuery/treasureBoxFlow', component: treasureBoxFlow },

            { path: '/main/resource/alarmResults', component: alarmResults },
            { path: '/main/operatingReport/profile', component: profile },
            { path: '/main/operatingReport/platformChannel', component: platformChannel },
            { path: '/main/operatingReport/districtService', component: districtService },
            { path: '/main/operatingReport/CPS', component: CPS },
            { path: '/main/operatingReport/countryReport', component: countryReport },
            { path: '/main/operatingReport/accumulatedChannels', component: accumulatedChannels },

            { path: '/main/playerAnalysis/playactive', component: playactive },
            { path: '/main/playerAnalysis/playkeep', component: playkeep },
            { path: '/main/playerAnalysis/playProfession', component: playProfession },
            { path: '/main/playerAnalysis/playleave', component: playleave },
            { path: '/main/playerAnalysis/playlogin', component: playlogin },
            { path: '/main/playerAnalysis/playGradesLeave', component: playGradesLeave },
            { path: '/main/playerAnalysis/playonline', component: playonline },
            { path: '/main/playerAnalysis/playplats', component: playplats },
            { path: "/main/playerAnalysis/playBackflow", component: playBackflow },
            { path: "/main/playerAnalysis/newPlayer", component: newPlayer },

            { path: '/main/paymentAnalysis/payIncome', component: payIncome },
            { path: '/main/paymentAnalysis/newPlayerValue', component: newPlayerValue },
            { path: '/main/paymentAnalysis/payHabit', component: payHabit },

            { path: '/main/financialTools/reconciliationBusiness', component: reconciliationBusiness },
            { path: '/main/financialTools/reconciliationBusinessChannel', component: reconciliationBusinessChannel },

            { path: '/main/gameInnerAnalysis/activityAnalysis', component: activityAnalysis },
            { path: '/main/gameInnerAnalysis/copyAnalysis', component: copyAnalysis },
            { path: '/main/gameInnerAnalysis/countryAnalysis', component: countryAnalysis },
            { path: '/main/gameInnerAnalysis/economicsAnalysis', component: economicsAnalysis },
            { path: '/main/gameInnerAnalysis/occupationAnalysis', component: occupationAnalysis },
            { path: '/main/gameInnerAnalysis/playerGardeAnalysis', component: playerGardeAnalysis },
            { path: '/main/gameInnerAnalysis/roleGardeAnalysis', component: roleGardeAnalysis },
            { path: '/main/gameInnerAnalysis/shopAnalysis', component: shopAnalysis },
            { path: '/main/gameInnerAnalysis/taskAnalysis', component: taskAnalysis },
            { path: '/main/err401', component: err401 },
            { path: '/main/err402', component: err402 },
            { path: '/main/err404', component: err404 },
            { path: '/main/clientAnalysis/activateCon', component: activateCon },
            { path: '/main/clientAnalysis/channelCon', component: channelCon },
            { path: '/main/clientAnalysis/modelCon', component: modelCon },
            { path: '/main/marketDataAnalysis/realTimeAdSlotData', component: realTimeAdSlotData },
            { path: '/main/marketDataAnalysis/realTimeChannelData', component: realTimeChannelData },
            { path: '/main/marketDataAnalysis/AdSchedulingOverview', component: AdSchedulingOverview },
            { path: '/main/marketDataAnalysis/vipCount', component: vipCount },
            { path: '/main/marketDataAnalysis/rankCount', component: rankCount },
            { path: '/main/marketDataAnalysis/UrlStatistics', component: UrlStatistics },
            { path: '/main/marketDataAnalysis/channelStatistics', component: channelStatistics },
            { path: '/main/marketDataAnalysis/AdDayData', component: AdDayData },
            { path: '/main/marketDataAnalysis/AdWarnData', component: AdWarnData },
            { path: '/main/marketDataAnalysis/pointsWallCount', component: pointsWallCount },
            { path: '/main/marketDataAnalysis/dayDataRetaPaid', component: dayDataRetaPaid },
            { path: '/main/advDayAllDataMarket/advDayAllDataMarket', component: advDayAllDataMarket },
            
            { path: '/main/clientAnalysis/activateCon', component: activateCon },

            { path: '/', redirect: '/main/realTime/gameSituation' },
        ]
    },
    {
        path: '/accredit',
        component: Accredit,
        children: [
            { path: '/accredit/users', component: users },
            { path: '/accredit/port', component: port },
            { path: '/accredit/role', component: role },
            { path: '/accredit/backgroundLog', component: backgroundLog },
            { path: '/accredit/defeatLog', component: defeatLog },
            { path: '/accredit/successLog', component: successLog },
            { path: '/accredit/moudle', component: moudle },
            { path: '/accredit/project', component: project },
            { path: '/', redirect: '/accredit/moudle' },
        ]
    },
    {
        path: '/system',
        component: System,
        children: [
            { path: '/system/systemConfig', component: systemConfig },
            { path: '/system/adSystemConfig', component: adSystemConfig },
            { path: '/system/adCostConfig', component: adCostConfig },
            { path: '/system/platConfig', component: platConfig },
            { path: '/system/chinalConfig', component: chinalConfig },
            { path: '/system/serversConfig', component: serversConfig },
            { path: '/system/gameParamsType', component: gameParamsType },
            { path: '/system/gameParamsConfig', component: gameParamsConfig },
            { path: '/', redirect: '/system/systemConfig' },
        ]
    },
    {
        path: '/resources',
        component: Resources,
        children: [
            { path: '/resources/alarmUser', component: alarmUser },
            { path: '/resources/alarmGroup', component: alarmGroup },
            { path: '/resources/userGroup', component: userGroup },
            { path: '/resources/alarmConfiguration', component: alarmConfiguration },
            { path: '/resources/dailyReport', component: dailyReport },
            { path: '/resources/vipCombatGradeFactor', component: vipCombatGradeFactor },
            { path: '/', redirect: '/resources/alarmUser' },
        ]
    },
    {
        path: '/',
        redirect: '/login'
    }
]

export default new VueRouter({
    routes: routes,
    // mode: 'history'
})